package com.drawu.drawuspring.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author hui
 * @since 2024-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("comments")
@ApiModel(value="Comments对象", description="评论表")
public class Comments implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "帖子id")
    private Integer postId;

    @ApiModelProperty(value = "评论者id")
    private Integer userId;

    @ApiModelProperty(value = "回复的评论 ID")
    private Integer repliedCommentId;

    @ApiModelProperty(value = "父评论id")
    private Integer fatherId;

    @ApiModelProperty(value = "接收者id")
    private Integer receiverId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "评论类型（0-帖子 1-桌游 2-活动）")
    private Integer type;

    @ApiModelProperty(value = "评论图片")
    private String url;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
